@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-container {
  padding: 12px 15px;
  height: 100%;

  // 左侧树自动高度
  >.el-row {
    height: 100%;

    >.el-col {
      height: 100%;

      >.tree-div {
        height: 100%;
      }
    }
  }
}

//表格上方按钮列列表样式
.table-top-btn-list {
  float: left;

  >* {
    margin-right: 5px;
  }

  .el-button {
    height: 28px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 28px;

    >span {
      .svg-icon{
        width: 14px;
        height: 14px;
        margin-right: 2px;
        transform: translateY(1px);
        position: unset;
      }

      .btn-text {
        position: relative;
        top: -1px;
      }

      .iconfont {
        font-size: 14px;
      }
    }
  }
}

//常用样式
.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

.text-center {
  text-align: center;
}

.text-nowrap {
  white-space: nowrap;
}

.disabled {
  color: #c0c4cc;
  cursor: not-allowed !important;

  &:hover {
    background: none !important;
  }

  pointer-events: none;
}

/************************************************ 多彩图标Css ****************************************************/

li .icon-svg,
td .icon-svg,
i .icon-svg,
.icon-svg {
  width: 15px;
  height: 15px;
  top: 1px;
  position: relative;
  fill: currentColor;
  overflow: hidden;
  margin-right: 3px;
}

i .icon-svg {
  top: 0;
  margin-right: 0px;
}
